package net.ak.service.impl;

import java.util.List;

import net.ak.dao.UserMasterDao;
import net.ak.model.User;
import net.ak.model.UserMaster;
import net.ak.service.UserMasterService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserMasterServiceImpl implements UserMasterService {
	
	@Autowired
	private UserMasterDao dao;

	@Override
	public List<UserMaster> listUserMasterByUser(User user) {
		return dao.listUserMasterByUser(user);
	}

	@Override
	public List<UserMaster> listUserMasterByIP(String ip) {
		return dao.listUserMasterByIP(ip);
	}

	@Override
	public List<UserMaster> listUserMasterByBrowser(String browser) {
		return dao.listUserMasterByBrowser(browser);
	}

	@Override
	public List<UserMaster> listUserMaster() {
		return dao.listUserMaster();
	}

	@Override
	public boolean saveOrUpdate(UserMaster master) {
		return dao.saveOrUpdate(master);
	}

}
